package com.example.order_product.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.order_product.Entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    @Select("select * from orders where productId = #{productId}")
    List<Order> selectByProductId(int productId);
}
